package cn.stylefeng.guns.sys.modular.cleanRule.mapper;

import cn.stylefeng.guns.sys.modular.cleanRule.entity.CleanRule;
import cn.stylefeng.guns.sys.modular.cleanRule.model.params.CleanRuleParam;
import cn.stylefeng.guns.sys.modular.cleanRule.model.result.CleanRuleResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 数据清洗规则表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2020-11-16
 */
public interface CleanRuleMapper extends BaseMapper<CleanRule> {

    /**
     * 获取列表
     *
     * @author author
     * @Date 2020-11-16
     */
    List<CleanRuleResult> customList(@Param("paramCondition") CleanRuleParam paramCondition);

    /**
     * 获取map列表
     *
     * @author author
     * @Date 2020-11-16
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") CleanRuleParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author author
     * @Date 2020-11-16
     */
    Page<CleanRuleResult> customPageList(@Param("page") Page page, @Param("paramCondition") CleanRuleParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author author
     * @Date 2020-11-16
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") CleanRuleParam paramCondition);


    /**
     * 逻辑删除
     * @param id
     * @return
     */
    void deleteCleanRule(@Param("id") Integer id);

}
